<?php
include(dirname(__FILE__) . '../../view/constantes/constantes.php');

function displayInscriptionForm($MSG_INSC_H, $MSG_INSC_B, $retour) {
	?>
<table style="width: 100%; text-align: center;">
	<tr>
			<!-- CADRE GAUCHE -->
			<td style="width: 40%; vertical-align: top; text-align: left; padding-right: 110px; text-align: justify;">
				
				<h1>Conseil</h1>
				<p />
				<?php echo $MSG_INSC_H; ?>
				<h2>Je souhaite envoyer</h2>
		
			</td>
			<!-- FIN CADRE GAUCHE -->

			<!-- CADRE MILIEU -->
			<td style="width: 60%; vertical-align: top; text-align: center;"><br />
				<div class="box">
					
					<div class="boxhead">
						<h1>Publier votre annonce</h1>
					</div>
	
					<div class="boxmidd">
						<form name="formAccom" method="POST" action="?content=annonce&annonce=true&type=1" onSubmit="return checkAccForm();" enctype="multipart/form-data">
							<table style="width: 100%">
								<tr>
									<td>
										<table style="width: 100%">
											<tr>
												<td style="width: 20%">Type d'annonce</td>
												<td style="width: 80%"><select style="width: 100%"
													name="champSelect" onChange="visibility();">
													<option value="1">Exp&eacute;dier</option>
													<option value="2">Accompagner</option>
												</select></td>
											</tr>
											<tr>
												<td style="width: 20%"></td>
												<td style="width: 80%"></td>
											</tr>
											<tr>
												<td style="width: 20%">Ville de d&eacute;part</td>
												<td style="width: 80%"><input name="annVDepart" type="text"
													value="<?php echo $vdep; ?>" /></td>
											</tr>
											<tr>
												<td style="width: 20%">Ville d'arriv&eacute;e</td>
												<td style="width: 80%"><input name="annVArrivee" type="text"
													value="<?php echo $varr; ?>" /></td>
											</tr>
											<tr>
												<td style="width: 20%">Date de d&eacute;part</td>
												<td style="width: 80%"><input name="annDateDep" type="text"
													value="<?php echo $date; ?>" /></td>
											</tr>
											<tr id="champVar" style="display: true;">
												<td style="width: 20%">Date de d'arriv&eacute;e</td>
												<td style="width: 80%"><input name="annDateArr" type="text"
													value="" /></td>
											</tr>
											<tr>
												<td style="width: 20%">Mode de transport</td>
												<td style="width: 80%">
													<select name="annModeTrans" style="width: 100%">
														<option value="vide">---</option>
														<option value="Avion">Transport a&eacute;rien</option>
														<option value="Motocycle">Transport fluvial</option>
													  	<option value="Automobile">Transport routier</option>
													</select>
												</td>
											</tr>
											<tr>
												<td style="width: 20%">Type de colis souhait&eacute;</td>
												<td style="width: 80%"><select name="annTypeColis"
													style="width: 100%">
													<option value="vide">---</option>
													<option value="Documents">Documents</option>
													<option value="Bagages">Bagages</option>
													<option value="Bagages">Non d&eacute;fini</option>
													<option value="Tous">Tous type</option>
												</select></td>
											</tr>
											<tr>
												<td style="width: 20%">Mensuration souhait&eacute;e</td>
												<td style="width: 80%"><input name="annColisHaut" type="small"
													value="" placeHolder="H (cm)" /> <input name="annColisLong"
													type="small" value="" placeHolder="L (cm)" /> <input
													name="annColisLarg" type="small" value="" placeHolder="l (cm)" />
												</td>
											</tr>
											<tr>
												<td style="width: 20%">Colis sous douane ?</td>
												<td style="width: 80%"><input name="annColisSDouane" type="radio"
													value="oui" checked="checked" /> Oui &nbsp; <input
													name="annColisSDouane" type="radio" value="non" /> Non &nbsp; <input
													name="annColisSDouane" type="radio" value="nsp" /> Ne sais pas<br />
												<br />
												</td>
											</tr>
											<tr>
												<td style="width: 20%">Poids souhait&eacute;</td>
												<td style="width: 80%"><select name="annColisPoids">
													<option value="vide">---</option>
													<option value="2">0 &agrave; 2 Kg</option>
													<option value="5">2 &agrave; 5 Kg</option>
													<option value="10">5 &agrave; 10 Kg</option>
													<option value="20">10 &agrave; 20 Kg</option>
													<option value="30">20 &agrave; 50 Kg</option>
												</select></td>
											</tr>
											<tr>
												<td style="width: 20%">Indiquer un prix</td>
												<td style="width: 80%"><input name="annPrix" type="text" value="" /></td>
											</tr>
											<tr>
												<td style="width: 20%">Ajouter un titre &agrave; votre annonce</td>
												<td style="width: 80%"><input name="annTitre" type="text" value="" /></td>
											</tr>
											<tr>
												<td style="width: 20%; vertical-align: middle;">Ajouter une
												description</td>
												<td style="width: 80%"><textarea name="annDesc"></textarea></td>
											</tr>
											<tr>
												<td style="width: 20%">Adresse de messagerie</td>
												<td style="width: 80%"><input name="annLogin" type="text" value="" /></td>
											</tr>
											<tr>
												<td style="width: 20%">Mot de passe</td>
												<td style="width: 80%"><input name="annMdp" type="password"
													value="" /></td>
											</tr>
						
											<tr>
												<td style="width: 20%"></td>
												<td style="width: 80%"><input name="annSuivi" type="checkbox"
													value="1" />&nbsp;Je souhaite recevoir par email les offres
												correspondants &agrave; mes crit&egrave;res.</td>
											</tr>
						
											<tr>
												<td style="width: 40%">&nbsp;</td>
												<td style="width: 80%">&nbsp;</td>
											</tr>
											<tr>
												<td style="width: 20%">&nbsp;</td>
												<td style="width: 80%"><input name="annSubmit" type="submit"
													value="Publication" /></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</td>
			<!-- FIN CADRE MILIEU -->
		</tr>
	</table>
	<br />
	<?php
}
echo $retour;
displayInscriptionForm($MSG_INSC_H, $MSG_INSC_B, $retour);
?>